package com.ellricky.ui.activity

import android.content.Intent
import com.andr.common.ui.activity.BaseActivity
import com.andr.common.ui.mvp.BasePresenter
import com.ellricky.R
import com.ellricky.baselib.cache.LocalCacheUtil

class WelcomeActivity : BaseActivity<Void, BasePresenter<Void>>() {


    override fun initUIView() {
        val firstEnter = LocalCacheUtil.isFirstUse()
        when (firstEnter) {
            true -> startActivity(Intent(this, IndexActivity::class.java))
            else -> startActivity(Intent(this, LoginActivity::class.java))
        }
        finish()
    }


    override fun getContentLayout(): Int {
        return R.layout.activity_welcome
    }
}